package demo1217.fuxi;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
/*
键盘录入一个出生日期,判断出生多少周?
 */
public class Demo_02 {
    public static void main(String[] args) throws ParseException {
        Scanner scanner = new Scanner(System.in);
        System.out.println("输入出生日期,格式:yyyyMMdd");
        String s = scanner.next();
        SimpleDateFormat a =new SimpleDateFormat("yyyyMMdd");
        Date parse = a.parse(s);
        long l = System.currentTimeMillis();
        long time = parse.getTime();
        System.out.println((l-time)/1000/60/60/24/7);
    }
}
